package org.ilc.sample.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

/**
 * @author malb
 * Date: 13-4-12
 * Time: 上午10:26
 */
public class LoggerUtil {
    private static final Logger LOGGER = LoggerFactory.getLogger (LoggerUtil.class);

    public static void logging(Logger logger, Throwable e) {
        logger.error ((new Date()).toString (), e);
    }

    public static void logging (Throwable e) {
        LOGGER.error ((new Date()).toString (), e);
    }


}
